//
//  TwoImageTableViewCell.m
//  Youhuiju
//
//  Created by yutenys on 16/7/25.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "TwoImageTableViewCell.h"

@interface TwoImageTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *rightImg;
@property (weak, nonatomic) IBOutlet UIImageView *leftImg;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *leftImgLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightImgTrailing;
@end

@implementation TwoImageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.imgHeight.constant = 75 * FitW;
    self.imgWidth.constant = 169 * FitH;
    
    self.leftImgLeading.constant = 10 * FitW;
    self.rightImgTrailing.constant = 0 * FitW;
}

- (IBAction)buttonAction:(UIButton *)sender {
    if (self.ImgClickedHandler)
    {
        self.ImgClickedHandler(sender.tag);
    }
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
